
    //违规事件-----》慢性疾病
    function loadDetail3_ys(param, disTab) {
        if (param.MedId == 1) {
            param.ybType = "省医保"
        } else if (param.MedId == 2) {
            param.ybType = "市医保"
        }
        showDetail();
        $(".detailWindow .title").html(param.title);
        $(".detailWindow .subTitle").html(param.cName + "<span>工号：" +  param.cStaffCode+ "</span>");
        $(".detailWindow .ruleInfo").html("");
        $(".detailWindow .ruleInfo").append('<div class="ruleTitle">职位：' + param.TitleName + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;部门编号：'+param.iDeptId+'</div>');
        $(".detailWindow .detailFoot .info").html("<h3>启用日期：" + param.dstartdate + "</h3>");
        $(".detailWindow .tableGroups").remove("");

        var tableGroup1 = $("<div class='tableGroups'></div>");
        $(".detailWindow .detailBody").append(tableGroup1);
        var url = "/index/search/queryPatientByDoctor/" + param.No_Staff;
        var groupDrg = getGroupObj("就诊人信息详情");
        tableGroup1.append(groupDrg);
            loadServerData(url, null, function (data) {
                    var tr = $("<tr style='font-weight:bolder'></tr>");
                    groupDrg.find("table").append(tr);
                    tr.append($("<td>姓名</td>"));
                    tr.append($("<td>性别</td>"));
                    tr.append($("<td>年龄</td>"));
                    tr.append($("<td>就诊人类型</td>"));
                    tr.append($("<td>诊断原因</td>"));
                    tr.append($("<td>就诊时间</td>"));

                        for (var i = 0; i < data.datas.length; i++) {
                                var tr = $("<tr></tr>");
                                groupDrg.find("table").append(tr);
                                for (var j = 0; j < 1; j++) {
                                        if (i < data.datas.length) {
                                            tr.append($("<td>" + (data.datas[i].cPatientName) + "</td>"));
                                            tr.append($("<td>" + (data.datas[i].iSex) + "</td>"));
                                            tr.append($("<td>" + (data.datas[i].iYearsOld) + "</td>"));
                                            tr.append($("<td>" + (data.datas[i].iPatientTypeID) + "</td>"));
                                            tr.append($("<td>" + (data.datas[i].cDiagResult) + "</td>"));
                                            tr.append($("<td>" + (data.datas[i].dDiagnoseDate) + "</td>"));
                                            i++;
                                        } else {
                                            break;
                                        }
                                }
                        }
                resizeDetail();
            })


    };

